using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

/**
*@file       GWServer_Register_SuccessSender.cs
*@brief      send message GWServer_Register_Success
*
*@author     graywind
*@version    1.0.0.1
*@data       2012/3/16
*/

//send message GWServer_Register_Success
public class msgGWServer_Register_Success : IImplMessageType
{
    public const int MessageId = (int)GatewayServerTypes.MessageType.GWServer_Register_Success;
    //TODO
    public int SessionId = NetLib.INVALID_SESSION;
	/// <summary>
	/// Initializes a new instance of the <see cref="msgGWServer_Register_Success"/> class.
	/// </summary>
	/// <param name='session_id'>
	/// Session_id.
	/// </param>
	public msgGWServer_Register_Success(int session_id)
	{
		SessionId = session_id;	
	}
}

//handle message
public partial class gwMessagePort
{
    /// <summary>
    /// handle message
    /// </summary>
    /// <param name="msg">message wrapper of GWServer_Register_Success</param>
    public static void ProcessMessage(msgGWServer_Register_Success msg)
    {
        //TODO
		msgGatewayServer mainMsg = new msgGatewayServer(msg.SessionId, msgGWServer_Register_Success.MessageId, null);
		gwMessagePort.ProcessMessage(mainMsg);
    }
}
